<div class="pagecontent">
	<?php include_partial('ipadProductPage/top') ?>
	<div class="centerboxtop"></div>
	<div class="centerboxmain">
		<div class="cboxmain">
			<div class="cboxmaincenter_tooted">
				<div class="toodebox">
					<?php
						$pic = @myPicture::getInstance($productMainPicture['file'])->resize(500,380,true,true);
						$picUrl = @$pic->url() . "?" . rand(0,100000); // hack to reload image (then ipad scrolls better :-O )
						$width = $pic->getWidth();
						$height = $pic->getHeight();
					?>
					<div style="margin:auto;width:<?php echo $width ?>px;height:<?php echo $height ?>px;background:url('<?php echo $picUrl ?>') no-repeat scroll center center transparent">
						<img style="display:none"  src="<?php echo $picUrl ?>"  alt="" />
					</div>
				</div>
				<div class="bottombox">					
					<div class="bottomboxright">
						<div style="padding-top:10px;padding-bottom:10px;">
						<?php if(!$product['brand_picture']): ?>
							<h2><?php echo $product['brand_name'] ?></h2>
						<?php else: ?>
								<?php
									$pic = @myPicture::getInstance($product['brand_picture'])->resize(148,70,true,true);
									$picUrl = @$pic->url() . "?" . rand(0,100000); // hack to reload image (then ipad scrolls better :-O )
								?>
								<img src="<?php echo $picUrl  ?>" alt="">
						<?php endif; ?>
						</div>
						
						<h1><?php echo $product['name'] ?></h1>	
						<?php if($productGroup): ?>
							<p><?php echo $productGroup['title'] ?></p>
						<?php endif; ?>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div class="cboxmainright">
				<?php include_partial('ipadProductPage/priceColumn', array('product' => $product)) ?>
			</div>
			<div class="clear"></div>
		</div>
	</div>
</div>